package demo2;

public class Test {

    public static void drawMap(IShape iShape){
        iShape.draw();
    }

    public static void main(String[] args) {
        /*drawMap(new Cycle());
        drawMap(new Flower());*/

        IShape[] iShapes = {new Cycle(), new Flower()};
        for(IShape iShape : iShapes){
            iShape.draw();
        }
    }

    public static void main1(String[] args) {
        IShape iShape = new Cycle();
        iShape.draw();

        IShape iShape1 = new Flower();
        iShape1.draw();
    }
}
